{% extends "main_face_base.html" %}

{% block styles %}
	<link rel="stylesheet" href="static/face.css" type="text/css"/>
	<link rel="stylesheet" href="static/board.css" type="text/css"/>
{% endblock %}

{% block content_block_left %}
	<div>
		<ul>
			<li>
				<p><a href="board?action=new">Объявить конкурс</a></p>
			</li>
		</ul>
	</div>
{% endblock %}

{% block document_title %}HOME - Доска объявлений{% endblock %}

{% block title_center %}<p>Доска объявлений</p>{% endblock %}

{% block content_block_center %}
	<div>
		<table>
			<tbody>
				<tr>
					<th>Конкурс</th>
					<th>Приз</th>
					<th>Дата завершения</th>
					<th>Набор участников</th>
				</tr>
				{% for contest in contests %}
					<tr>
						<td><a href="board?view={{contest.id}}">{{contest.title}}</a></td>
						<td>{{contest.cash}}</td>
						<td>{{contest.finish_time}}</td>
						<td>{{contest.status}}</td>
					</tr>
				{% endfor %}
			</tbody>
		</table>
	</div>
{% endblock %}
